package zzs.generalframework.console.core.parameter.commonparameter.department.dao;

import java.util.List;

import zzs.generalframework.common.core.parameter.commonparameter.department.DepartmentInfo;
import zzs.generalframework.common.core.parameter.commonparameter.department.DepartmentPO;

/**
 * @title
 * @description
 * @project zzs-console
 * @package zzs.generalframework.console.core.parameter.commonparameter.department.dao
 * @author zzs
 * @date 2018年2月2日
 * @version 1.0
 */
public interface IDepartmentDao
{
	/**
	 * 创建部门信息
	 * 
	 * @param departmentPO
	 * @return
	 */
	public boolean insert(DepartmentPO departmentPO);

	/**
	 * 更新部门信息
	 *
	 * @param departmentPO
	 * @return
	 */
	public boolean update(DepartmentPO departmentPO);

	/**
	 * 查询部门信息
	 *
	 * @param departmentInfo
	 * @return
	 */
	public List<DepartmentPO> select(DepartmentInfo departmentInfo);

	/**
	 * 删除部门信息
	 *
	 * @param departmentPO
	 * @return
	 */
	public boolean delete(DepartmentPO departmentPO);

	/**
	 * 统计部门信息
	 * 
	 * @param departmentPO
	 * @return
	 */
	public Long count(DepartmentPO departmentPO);

}
